Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Pick random map from list and set results as cvar

  1. #11

  2. #12

    Default

    Thanks, Ryback. I'll look at those next time I have something to mod.

    I've implemented this on my server right now and it's working well, there is a feature that I've been asked to investigate:

    Rather than a "random" map, the players are curious if there's a way to "shuffle" the maps, so the random count doesn't pick the same number until all the numbers have been picked. (map 22 wont be picked again until maps 1-21 and 23-200 have been picked). Is that something that could be implemented?

  3. #13
    Developer RyBack's Avatar
    Join Date
    Apr 2014
    Location
    In Front of the screen
    Posts
    1,566

    Default

    arrays.

  4. #14

    Default

    Uh...
    Is there....

    Any elaboration there, Ryback?
    I'd like to think you're trying to help, but who knows.

  5. #15
    Developer RyBack's Avatar
    Join Date
    Apr 2014
    Location
    In Front of the screen
    Posts
    1,566

    Default

    eh,
    game.System.Array.Shuffle local.array.

    ( ͡° ͜ʖ ͡° )

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •